<extend file='app/home/master'/>

<block name="content">
  <div id="mainbody">
    <div class="blogs">
      <div id="index_view">
        <h2 class="t_nav"><a href="{{__ROOT__}}/index.html">首页</a><a href="{{__ROOT__}}/index.html">慢生活</a></h2>
        <h1 class="c_titile">{{$articleData[0]['ctitle']}}</h1>
        <p class="box">发布时间：{{$articleData[0]['sendtime']}}<span>编辑：{{$articleData[0]['author']}}</span>阅读：{{$articleData[0]['click']}}</p>
        <ul>
          <p>
            {{$articleData[0]['content']}}
          </p>
        </ul>
        <!--友言语-->
        <!--友言-->
        <!-- UY BEGIN -->
        <div id="uyan_frame"></div>
        <script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js"></script>
        <!-- UY END -->
        <div class="share">
          <!-- Baidu Button BEGIN -->
          <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare"> <span class="bds_more">分享到：</span> <a class="bds_qzone"></a> <a class="bds_tsina"></a> <a class="bds_tqq"></a> <a class="bds_renren"></a> <a class="bds_t163"></a> <a class="shareCount"></a> </div>
          <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6574585" ></script>
          <script type="text/javascript" id="bdshell_js"></script>
          <script type="text/javascript">
            document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
          </script>
          <!-- Baidu Button END -->
        </div>
        <div class="otherlink">
          <h2>最新文章</h2>
          <ul>

            <foreach from="$ctitle" key="$k" value="$v">
            <li><a href="{{__ROOT__}}/content/{{$v['aid']}}.html" title="ÎÒÏ£ÍûÎÒµÄ°®ÇéÊÇÕâÑùµÄ">{{$v['ctitle']}}</a></li>
            </foreach>
          </ul>
        </div>
      </div>
      <!--bloglist end-->
      <aside>
        <div class="search">
          <form class="searchform" method="get" action="#">
            <input type="text" name="s" value="Search" onfocus="this.value=''" onblur="this.value='Search'">
          </form>
        </div>
        <div class="sunnav">
          <ul>
            <foreach from="$category" key="$k" value="$v">
            <li><a href="{{__ROOT__}}/listcid/{{$v['cid']}}.html" target="_blank" title="ÍøÕ¾½¨Éè">{{$v['cname']}}</a></li>

            </foreach>
          </ul>
        </div>
        <div class="tuijian">
          <h2>栏目更新</h2>
          <ol>
           <foreach from="$ctitle" key="$k" value="$v">
            <li><span><strong>{{$v['aid']}}</strong></span><a href="{{__ROOT__}}/content/{{$v['aid']}}.html">{{$v['ctitle']}}</a></li>
           </foreach>
          </ol>
        </div>
        <div class="toppic">
          <h2>图文并茂</h2>

          <ul>
            <?php foreach($article_catgory as $k=>$v) {?>
              <li>
                <a href="{{__ROOT__}}/content/{{$v['aid']}}.html"><img src="{{__ROOT__}}/{{$v['thumb']}}">{{$v['ctitle']}}
                <p>{{$v['cname']}}</p>
                </a>
              </li>
            <?php }?>
          </ul>

        </div>
        <div class="clicks">
          <h2>猜你喜欢</h2>
          <ol>
            <foreach from="$articleTitle" key="$key" value="$v">
            <li><span>
                <foreach from="$v['tag']" key="$k" value="$vv" >
                  <!--'listpid/{pid}.html'根据标签找文章-->
                  <!--{{__ROOT__}}/listpid/{{$vv['tid']}}.html-->
                <a href="{{__ROOT__}}/listpid/{{$vv['tid']}}.html">{{$vv['tname']}}</a>
                </foreach>
            </span><a href="{{__ROOT__}}/content/{{$v['aid']}}.html">{{$v['ctitle']}}</a></li>
              </foreach>
          </ol>
        </div>
      </aside>
    </div>
    <!--blogs end-->
  </div>


<!--header end-->
  </block>



